package global

import (
	"sdk/sdktype"
	// "github.com/satori/go.uuid"
)

var G_doname []string = []string{
	"cn.ice.galaxywind.com",
	"ie.ice.galaxywind.com",
	"de.ice.galaxywind.com",
	"us.ice.galaxywind.com",
	"jp.ice.galaxywind.com",
	"sg.ice.galaxywind.com",
	"br.ice.galaxywind.com",
	"au.ice.galaxywind.com"}

//disp prob port
const (
	DISP_PROB_PORT1 = 1190
	DISP_PROB_PORT2 = 42190
	DISP_PROB_PORT3 = 52190
)

//disp port
const (
	DISP_SERVER_PORT1 = 1180
	DISP_SERVER_PORT2 = 31578
	DISP_SERVER_PORT3 = 51180
)

//ucc port
const (
	UC_TRANS_PORT0 = 51192
	UC_TRANS_PORT1 = 42612
	UC_TRANS_PORT2 = 1192
)

//联动通讯端口
const (
	UCLA_PORT  = 1200
	UCLA_PORT1 = 31200
	UCLA_PORT2 = 51200
)

//全局类型
type Cl_priv struct {
	Appid  uint32
	Vvid   uint32
	Uuid   [sdktype.UUID_LEN]uint8
	Appver [3]uint8
}

func getUuid() [sdktype.UUID_LEN]uint8 {
	//test
	var uuid [sdktype.UUID_LEN]uint8
	for i := 0; i < sdktype.UUID_LEN; i++ {
		uuid[i] = uint8(i)
	}

	return uuid
}

var G_clpriv Cl_priv = Cl_priv{
	Appid:  0,
	Vvid:   0,
	Uuid:   getUuid(),
	Appver: [3]uint8{4, 0, 0},
}
